package com.woniuxy.c_jdbcrealm;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.junit.Test;

/**
 * @author lg
 * @time 2020/07/04 14:50:07
 */
public class Appw {

     @Test
     public void testMd5(){
         String s="123";
         String salt="aa";
         SimpleHash sh=new SimpleHash ("MD5",s,salt,1024);
         String hex=sh.toHex ();
         System.out.println ("hex="+hex);


     }
}
